package cn.tedu.service;

import cn.tedu.dao.UserMapper;
import cn.tedu.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class UserServiceImpl implements UserService{
    @Autowired
    private UserMapper userMapper;

    @Override
    public void ourInsertOne(User user) {
        userMapper.ourInsertOne(user);
    }

    @Override
    public void ourDeleteOne(User user) {
        userMapper.ourDeleteOne(user);
    }

    @Override
    public void ourDeletebyID(Integer id) {
        userMapper.ourDeletebyID(id);
    }

    @Override
    public void ourUpdateById(User user) {
        userMapper.ourUpdateById(user);
    }

    @Override
    public List<User> ourSelectByName(User user) {
        return userMapper.ourSelectByName(user);
    }
}
